From 83bb45e16734b26f67122e51dda1ea3671a7928b Mon Sep 17 00:00:00 2001 From: Jeremy Bryant Date: Sat, 9 Mar 2024 21:54:23 +0000 Subject: [PATCH] Use string-empty-p for readability. * which-key.el (which-key--maybe-get-prefix-title): Use string-empty-p for readability. --- which-key.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/which-key.el b/which-key.el index a4aec2476d3..985c419f73b 100644 --- a/which-key.el +++ b/which-key.el @@ -1660,7 +1660,7 @@ no title exists." (alternate (when (and binding (symbolp binding)) (symbol-name binding)))) (cond (title-res title-res) - ((not (string-equal repl-res "")) repl-res) + ((not (string-empty-p repl-res)) repl-res) ((and (eq which-key-show-prefix 'echo) alternate) alternate) ((and (member which-key-show-prefix '(bottom top mode-line)) -- 2.30.2